<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>translate3d 两面反转的盒子</title>
  <style>
    body{
      perspective: 200px; 
    }
    .container {
      position: relative;
      height: 200px;
      width: 200px;
      margin: 0 auto;
      text-align: center;
      line-height: 200px;
      border: 1px solid red;
      transform-style: preserve-3d;
    }
    .container:hover {
      transform: rotate3d(1,0,0,80deg) ;
      transition:all 3s;
      transition:all 3s;
    }

    .front,
    .reverse {
      position: absolute;
      top: 0;
      left: 0;
      width: 200px;
      height: 200px;
      border-radius: 50%;
    }
    .front{
      background-color: #218300;
      z-index: 1;
    }
    .reverse {
      background-color: #005971;
      transform: rotateY(180deg) translateZ(0.1px);
    }
   
    
  </style>
</head>

<body>
  <div class="container">
    <div class="front">正面</div>
    <div class="reverse">反面</div>
  </div>
</body>
 <div></div>
</html>